<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>Document</title>
	</head>
	<body>
		<script>
			/*
        var info = {} 没有块作用域, 这里是对象创建语法, 当执行15行代码时, 会在函数作用域中查找name
          在函数作用域中没有查找到时, 会在上层作用域(全局作用域中查找)
      */
			var info = {
				name: 'abc',
				eatting: function (name) {
					console.log('name', name)
				},
				seetting: function () {
					console.log(this.name)
				},
			}

			info.eatting(info.name)
			info.seetting()
		</script>
	</body>
</html>
